<!-- 在线开方 -->
<template>
	<view class="online-prescribe-wrapper">
		<view class="top-menu">
			<!-- <view class="menu-item">
				<p>已有处方，选择下单</p>
			</view>
			<view style="width: 10px;"></view> -->
			<view class="menu-item" @click="goToPage('/pages/onlinePrescribe/noPrescriptionForm')">
				<p>问医生开药</p>
			</view>
		</view>
		<uni-section title="我的处方" type="line">
			
		</uni-section>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mycfList: []
			}
		},
		onLoad() {
			this.api_mycflist()
		},
		methods: {
			goToPage(url) {
				uni.navigateTo({
					url: url
				})
			},
			/**
			 * 我的处方列表
			 */
			api_mycflist() {
				this.$app._get('entry/wxapp/user.mycflist', {}, (result)=>{
					this.mycfList = result
					console.log(result)
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.online-prescribe-wrapper {
		background-color: #fff;
		.top-menu {
			display: flex;
			padding: 10px;
			.menu-item {
				width: 100%;
				display: flex;
				flex-direction: column;
				align-items: center;
				background-color: #41C177;
				border-radius: 6px;
				color: #fff;
				padding: 20px 0 20px 0;
			}
		}
	}
</style>